package com.parking.common.core.util;

import cn.hutool.core.bean.BeanUtil;

import java.util.ArrayList;
import java.util.List;

public class BeanUtilCommon {
    public static <T> List<T> BeanToList(List forms, Class<T> clazz){
        List<T> params = new ArrayList<T>();
        for (Object form : forms) {
            T param = BeanUtil.toBean(form, clazz);
            params.add(param);
        }
        return params;
    }
}
